from flask import Flask
from flask_cors import CORS
from routes.root import root
from routes.user import user
from routes.admin import admin
from routes.updata import updata
from routes.navbg import navbg

app = Flask(__name__)

CORS(app, resources=r'/*')  # 解决跨域请求

app.register_blueprint(root)
app.register_blueprint(user)
app.register_blueprint(admin)
app.register_blueprint(updata)
app.register_blueprint(navbg)

if __name__ == '__main__':
    app.run(host="0.0.0.0", debug=True, port=8000)
